<?php
	class LilcartAppModel extends AppModel {
		function __construct($id = false, $table = null, $ds = null) {
			if (defined('CAKE_UNIT_TEST') && CAKE_UNIT_TEST) {
				$this->useDbConfig = 'test';
			} else {
				if ($table_prefix = Configure::read('LilcartPlugin.tablePrefix')) {
					$this->tablePrefix = $table_prefix;
				}
			}
			parent::__construct($id, $table, $ds);
		}
	}
?>